<template>
	<view class="content">
		<view class="search">
			<image src="../../../static/home/search.png" mode=""></image>
			<input type="text" value="" placeholder="搜索" />
		</view>
		<view class="listtit">
			<text>校园列表（可多选）</text>
		</view>
		<view class="list" v-for="(item,index) in List">
			<view class="list1">
				<text>{{item.title}}</text>
			</view>
			<view class="list2" @click="change(item)">
				<view class="list2_w" v-show="item.status">

				</view>
			</view>
		</view>
		<view class="bt">
			<button type="default" @click="to()">推送至校园</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				List: [{
						id: 0,
						title: 'A校园名称',
						status: false
					},
					{
						id: 1,
						title: 'A校园名称',
						status: false
					},
					{
						id: 2,
						title: 'A校园名称',
						status: false
					},
					{
						id: 3,
						title: 'A校园名称',
						status: false
					}
				]
			}
		},
		methods: {
			change(item) {
				item.status = !item.status
			},
			to(){
				uni.navigateTo({
					url:'/pages/shop/mushop/select_class'
				})
			}
		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 1624rpx;
		background: #FAFAFA;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		padding-top: 40rpx;
	}

	.search {
		width: 690rpx;
		height: 88rpx;
		background: #FFFFFF;
		border-radius: 60rpx 60rpx 60rpx 60rpx;
		border: 2rpx solid #409CFD;
		display: flex;
		align-items: center;
		margin: auto;
	}

	.search image {
		width: 34rpx;
		height: 34rpx;
		margin-left: 28rpx;
		margin-right: 30rpx;
	}

	.listtit {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		margin-left: 30rpx;
		margin-top: 32rpx;
	}

	.list {
		width: 690rpx;
		height: 116rpx;
		background: #FFFFFF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 32rpx auto 0;
	}

	.list1 {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		margin-left: 40rpx;
	}

	.list2 {
		width: 40rpx;
		height: 40rpx;
		border-radius: 40rpx 40rpx 40rpx 40rpx;
		border: 4rpx solid #D9D9D9;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-right: 32rpx;
	}

	.list2_w {
		width: 30rpx;
		height: 30rpx;
		background: #FF7070;
		border-radius: 30rpx;
	}

	.bt {
		margin: 500rpx auto 0;
	}

	.bt button {
		width: 690rpx;
		height: 96rpx;
		background: #409CFD;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 800;
		font-size: 32rpx;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>